package org.gwtEss.menu;

import com.google.gwt.user.client.ui.Widget;

public abstract class MenuItem implements HasMenuItemAllFunctions{
	String displayText;
	String detailText; 
	Widget icon;
	SubMenuItemBase subMenu;
	String toolTip = "";
	boolean enable = true; 
	public MenuItem(String displayText, SubMenuItemBase subMenu) {
		super();
		this.displayText = displayText;
		this.subMenu = subMenu;
	}

	public MenuItem(String displayText) {
		super();
		this.displayText = displayText;
	}
	@Override
	public String getDisplayText() {
		return displayText;
	}
	public void setDisplayText(String displayText) {
		this.displayText = displayText;
	}
	@Override
	public String getDetailText() {
		return detailText;
	}
	public void setDetailText(String detailText) {
		this.detailText = detailText;
	}
	@Override
	public Widget getIcon() {
		return icon;
	}
	public void setIcon(Widget icon) {
		this.icon = icon;
	}
	@Override
	public String getToolTip() {
		return toolTip;
	}
	public void setToolTip(String toolTip) {
		this.toolTip = toolTip;
	}
	public boolean isEnable() {
		return enable;
	}
	public void setEnable(boolean enable) {
		this.enable = enable;
	}
	@Override
	public SubMenuItemBase getSubMenu() {
		return subMenu;
	}
	public void setSubMenu(SubMenuItemBase subMenu) {
		this.subMenu = subMenu;
	}

}
